// 首页样式less文件
// 导入公共样式的less文件
@import "sn_common";

body {
    max-width: 750px;
    min-width: (320rem / @basefont);
    width: 15rem;
    margin: 0 auto;
    line-height: 1.5;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f2f2f2;
}
// 顶部搜索框Start
@basefont: 50;
.search-content{
    display: flex;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15rem;
    height: (88rem / @basefont);
    background-color: #FFC001;
    .classify {
        width: (44rem / @basefont);
        height: (70rem / @basefont);
        background: url(../images/classify.png) no-repeat;
        background-size: (44rem / @basefont);
        text-align: center;
        margin: (11rem / @basefont) (25rem / @basefont) (7rem / @basefont) (25rem / @basefont);
    }
    .search {
        flex: 1;
        line-height:  (88rem / @basefont);
        input {
            outline: none;
            width: 100%;
            border: 0;
            height: (66rem / @basefont);
            border-radius: (33rem / @basefont);
            background-color: #FFF2CC;
            font-size: ( 25rem / @basefont);
            padding-left: (55rem / @basefont);
            color: #757575;
        }
    }
    .login {
        text-align: center;
        width: (75rem / @basefont);
        height: (70rem / @basefont);
        line-height: (70rem / @basefont);
        margin: (10rem / @basefont);
        font-size: ( 25rem / @basefont);
        color: #FFF;
    }
}
// 顶部搜索框End

// banner部分Start
.banner {
    width: (750rem / @basefont);
    height: (368rem / @basefont);
    img {
        width: 100%;
        height: 100%;
    }
}
// banner部分end

// 广告部分Start
.ad {
    display: flex;
    a {
        flex: 1;
        img {
            width: 100%;
        }
    }
}
// 广告部分End

// 导航栏部分Start
nav {
    width: (750rem / @basefont);
    a {
        float: left;
        width: (150rem / @basefont);
        height: (140rem / @basefont);
        text-align: center;
        img {
            display: block;
            width: (82rem / @basefont);
            height: (82rem / @basefont);
            margin: (10rem / @basefont) auto (-20rem / @basefont);
        }
        span {
            color: #333;
            font-size: ( 25rem / @basefont);
            margin: 0 auto;
        }
    }
}